<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class ModifyAreaField extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('stores', function(Blueprint $blueprint) {
            $blueprint->renameColumn('area_country', 'area_county');
        });

        Schema::table('counter_enquiries', function(Blueprint $blueprint) {
            $blueprint->renameColumn('country_id', 'county_id');
        });

        Schema::table('counter_offers', function(Blueprint $blueprint) {
            $blueprint->renameColumn('country_id', 'county_id');
        });

        Schema::table('enquiries', function(Blueprint $blueprint) {
            $blueprint->renameColumn('country_id', 'county_id');
        });

        Schema::table('offers', function(Blueprint $blueprint) {
            $blueprint->renameColumn('country_id', 'county_id');
        });

        Schema::table('goods', function(Blueprint $blueprint) {
            $blueprint->renameColumn('country_id', 'county_id');
        });

        Schema::table('member_informations', function(Blueprint $blueprint) {
            $blueprint->renameColumn('country_id', 'county_id');
        });


    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
    }
}
